home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
basic
/
fglqbx10.zip
/
10-01.BAS
< prev
next >
Wrap
BASIC Source File
|
1991-06-07
|
563b
|
31 lines
REM $INCLUDE: 'fastgraf.bi'
DEFINT A-Z
REM initialize the video environment
NewMode = FGbestmode(320,200,1)
IF NewMode < 0 OR NewMode = 12 THEN
PRINT "This program requires a 320 x 200 color graphics mode."
STOP
END IF
OldMode = FGgetmode
FGsetmode NewMode
REM move the object across the screen
FOR X = -20 TO 315 STEP 5
FGsetcolor 10
FGclprect X, X+19, 95, 104
FGwaitfor 1
FGsetcolor 0
FGclprect X, X+19, 95, 104
NEXT
REM restore the original video mode and return to DOS
FGsetmode OldMode
FGreset
END